package controllers

import "github.com/gin-gonic/gin"

type BaseController struct{}

func (con BaseController) Success(c *gin.Context, message string, redirectUrl string) {

	c.HTML(200, "admin/public/success.html", gin.H{
		"message":     message,
		"redirectUrl": redirectUrl,
		"time":        1,
	})
}
func (con BaseController) Error(c *gin.Context, message string, redirectUrl string) {

	c.HTML(200, "admin/public/error.html", gin.H{
		"message":     message,
		"redirectUrl": redirectUrl,
		"time":        3,
	})
}
